<?php	
class account  {
	
	public $base;
	public $account;
	
	/**
	 * 类的初始化
	 *
	 * @param unknown_type $base
	 */
	function __construct($base) {
		$this->base = $base;
		//加载accountModel
	    $this->account = $this->base->loadModel('account',$this->base);
		//$_ENV['account']->index();
		//加载登录视图
		$data['login'] = 'erhuok is ok!';
		$this->base->loadview('login',$data);
	}
	
	function index() {
		
	}
	
	/**
	*注册
	*
	*/
	function register() {
		echo 'register';
		$this->account->register();
	}
}

?>